Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 11 |
Ratio | 100 % |
Changes | 0 |
1 | View Code Duplication | const DB = require('../libraries/db') |
|
9 | getUserByOpenId: async function (openid) { |
||
10 | |||
11 | let user = DB.readMysql.first( |
||
12 | '*' |
||
13 | ) |
||
14 | .from(table) |
||
15 | .where('openid', openid) |
||
16 | |||
17 | return await user |
||
18 | |||
19 | }, |
||
20 | |||
45 | } |